﻿using System;
using System.Collections.Generic;
using ScoutersLog.DataAccess.Persistence;

namespace ScoutersLog.Model.Factory
{
    public class UnitTypeFactory
    {
        public static UnitType GetUnitType(char unitTypeId)
        {
            return (UnitType)SharedSession.Get(typeof(UnitType), unitTypeId);
        }

        public static IList<UnitType> GetUnitTypeList()
        {
            return SharedSession.LoadList<UnitType>("FullName");
        }
    }
}
